<?php 
	if ($this->artworks){
		?>
<ul>
<?php
		foreach ($this->artworks as $artwork){
			$rand = "artwork" . microtime() . $artwork->id;
?>
  <li style="width: 70px; float: left; margin: 8px; list-style: none"> 
  <img onclick="addCandidateArtwork(<?php echo $artwork->id;?>, '<?php echo $artwork->getPhotoWebAccessablePath("70x70");?>', '<?php echo $artwork->getPhotoWebAccessablePath("260x260");?>');" 
  src="<?php echo $artwork->getPhotoWebAccessablePath("70x70");?>" title= "<?php echo $artwork->name;?>"  />
  		<input type="hidden" id="<?php echo $rand;?>" value="<?php echo $artwork->id;?>"/> </li>
</ul>

		
		
		
		
		
		<?php
		}
	}
?>